package com.starrk.myblog.foreground.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Starrk
 * @since 2018-03-25
 */
@TableName("blog_content")
public class BlogContent extends Model<BlogContent> {

    private static final long serialVersionUID = 1L;

    private Long id;
    @TableField("blog_info_id")
    private Long blogInfoId;
    private String content;
    @TableField("blog_abstract")
    private String blogAbstract;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBlogInfoId() {
        return blogInfoId;
    }

    public void setBlogInfoId(Long blogInfoId) {
        this.blogInfoId = blogInfoId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getBlogAbstract() {
        return blogAbstract;
    }

    public void setBlogAbstract(String blogAbstract) {
        this.blogAbstract = blogAbstract;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BlogContent{" +
        ", id=" + id +
        ", blogInfoId=" + blogInfoId +
        ", content=" + content +
        ", blogAbstract=" + blogAbstract +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
